version 6.0 
#delimit ;
log using c:\stata\log\LK5set\acdirsummaryLK5, replace ;
use c:\stata\data\LK5set\acdirLK,clear;
summarize;
gen ABibsi=(bsiLKlfr+bsiLKagr+bsiLKen+bsiLKimm+bsiLKpri+bsiLKalc)/6;
gen ABibl_=(bl_LKlfr+bl_LKagr+bl_LKen+bl_LKimm+bl_LKpri+bl_LKalc)/6;
gen ABiblp=(blpLKlfr+blpLKagr+blpLKen+blpLKimm+blpLKpri+blpLKalc)/6;


gen ASEibsi=(esiLKlfr+esiLKagr+esiLKen+esiLKimm+esiLKpri+esiLKalc)/6;
gen  ASEibl_=(el_LKlfr+el_LKagr+el_LKen+el_LKimm+el_LKpri+el_LKalc)/6;
gen ASEiblp=(elpLKlfr+elpLKagr+elpLKen+elpLKimm+elpLKpri+elpLKalc)/6;


gen ABmbsm=(bsmLKlfr+bsmLKagr+bsmLKen+bsmLKimm+bsmLKpri+bsmLKalc)/6;
gen ABmblr=(blrLKlfr+blrLKagr+blrLKen+blrLKimm+blrLKpri+blrLKalc)/6;
gen ABmblm=(blmLKlfr+blmLKagr+blmLKen+blmLKimm+blmLKpri+blmLKalc)/6;

gen ASEmbsm=(esmLKlfr+esmLKagr+esmLKen+esmLKimm+esmLKpri+esmLKalc)/6;
gen ASEmblr=(elrLKlfr+elrLKagr+elrLKen+elrLKimm+elrLKpri+elrLKalc)/6;
gen ASEmblm=(elmLKlfr+elmLKagr+elmLKen+elmLKimm+elmLKpri+elmLKalc)/6;

summarize ABibsi ABibl_ ABiblp ASEibsi ASEibl_ ASEiblp
          ABmbsm ABmblr ABmblm ASEmbsm ASEmblr ASEmblm ;


use c:\stata\data\LK5set\acdirLK5,clear;
summarize;

gen A5Bibsi=(bsiL5lfr+bsiL5agr+bsiL5en+bsiL5imm+bsiL5pri+bsiL5alc)/6;
gen A5Bibl_=(bl_L5lfr+bl_L5agr+bl_L5en+bl_L5imm+bl_L5pri+bl_L5alc)/6;
gen A5Biblp=(blpL5lfr+blpL5agr+blpL5en+blpL5imm+blpL5pri+blpL5alc)/6;


gen A5SEibsi=(esiL5lfr+esiL5agr+esiL5en+esiL5imm+esiL5pri+esiL5alc)/6;
gen A5SEibl_=(el_L5lfr+el_L5agr+el_L5en+el_L5imm+el_L5pri+el_L5alc)/6;
gen A5SEiblp=(elpL5lfr+elpL5agr+elpL5en+elpL5imm+elpL5pri+elpL5alc)/6;

summarize A5Bibsi A5Bibl_ A5Biblp A5SEibsi A5SEibl_ A5SEiblp ;

log close ;
clear;
translate c:\stata\log\LK5set\acdirsummaryLK5.smcl
     c:\stata\log\Lk5set\acdirsummaryLK5.log, replace;
